package com.example.lab3.config;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;


/**
 * 自动配置类
 * */
@Configuration
@EnableScheduling
public class RunConfig {

    @Bean(name = "爬取数据辅助类")
    public RestTemplate creatRestTemplate(RestTemplateBuilder restTemplate){return restTemplate.build();}

}
